package com.jlect.swebing.util.client;

import com.google.gwt.user.client.rpc.IsSerializable;

import java.util.Iterator;

/**
 * Collections helper class
 *
 * @author Sergey Kozmin
 * @since 17.11.2007 18:47:35
 */
public class Collections {
    public static final Iterator EMPTY_ITERATOR = new EmptyIterator();
    
    public static class EmptyIterator implements Iterator, IsSerializable {
        public boolean hasNext() {
            return false;
        }

        public Object next() {
            return null;
        }

        public void remove() {
        }
    }
}
